﻿using System;
using System.Text;

namespace Bpms.Config
{
    /// <summary>
    /// email相关配置信息
    /// </summary>
    [Serializable]
    public class EmailConfigInfo : IConfigInfo
    {
        #region 私有字段

        private string _smtp = "mail.celestone.com.cn"; //smtp 地址

        private int _port = 25; //端口号

        private string _sysEmail = "admin@bpms.celestone.com.cn";  //系统邮件地址

        private string _syseName = "bpms";//系统邮件名

        private string _userName = "yingjie_zhang";  //邮件帐号

        private string _password = "yingjie_zhang";  //邮件密码

        private string _emailContent = "content"; //邮件内容

        private string _nameSpace = "Bpms.Mail.SmtpMail"; //空间

        private string _dllFileName = "Mail";  //DLL名称

        #endregion

        public EmailConfigInfo()
        {

        }

        #region 属性

        /// <summary>
        /// smtp服务器
        /// </summary>
        public string Smtp
        {
            get { return _smtp; }
            set { _smtp = value; }
        }

        /// <summary>
        /// 端口号
        /// </summary>
        public int Port
        {
            get { return _port; }
            set { _port = value; }
        }


        /// <summary>
        /// 系统Email地址
        /// </summary>
        public string SysEmail
        {
            get { return _sysEmail; }
            set { _sysEmail = value; }
        }

        /// <summary>
        /// 系统名称
        /// </summary>
        public string SyseName
        {
            get { return _syseName; }
            set { _syseName = value; }
        }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }

        /// <summary>
        /// 邮件内容
        /// </summary>
        public string EmailContent
        {
            get { return _emailContent; }
            set { _emailContent = value; }
        }



        /// <summary>
        /// 所运行的命名空间
        /// </summary>
        public string NameSpace
        {
            get { return _nameSpace; }
            set { _nameSpace = value; }
        }


        /// <summary>
        /// DLL名称
        /// </summary>
        public string DllFileName
        {
            get { return _dllFileName; }
            set { _dllFileName = value; }
        }
        #endregion


    }
}
